package com.guide.persistence;

import com.guide.domain.Guide;
import com.guide.domain.GuideQuery;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface GuideMapper {
    int countByExample(GuideQuery example);
    
    int countByExampleWithBLOBsForIndex(@Param("city") String city);

    int deleteByExample(GuideQuery example);

    int deleteByPrimaryKey(Long id);

    int insert(Guide record);

    int insertSelective(Guide record);

    List<Guide> selectByExampleWithBLOBs(@Param("example") GuideQuery example);

    List<Guide> selectByExample(@Param("example") GuideQuery example);
    
    List<Guide> selectByExampleWithBLOBsForIndex(@Param("city") String city,@Param("pageIndex") Integer pageIndex,@Param("limit") Integer limit);

    Guide selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Guide record, @Param("example") GuideQuery example);

    int updateByExampleWithBLOBs(@Param("record") Guide record, @Param("example") GuideQuery example);

    int updateByExample(@Param("record") Guide record, @Param("example") GuideQuery example);

    int updateByPrimaryKeySelective(Guide record);

    int updateByPrimaryKeyWithBLOBs(Guide record);

    int updateByPrimaryKey(Guide record);
}